package org.dromara.wms.domain.bo;

import org.dromara.wms.domain.WmsGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 产品分组业务对象 wms_group
 *
 * @author Lion Li
 * @date 2024-03-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WmsGroup.class, reverseConvertGenerate = false)
public class WmsGroupBo extends BaseEntity {

  /**
   * id
   */
  @NotNull(message = "id不能为空", groups = {EditGroup.class})
  private Long id;

  /**
   * 产品名称
   */
  @NotBlank(message = "产品名称不能为空", groups = {AddGroup.class, EditGroup.class})
  private String name;

  /**
   * 编码
   */
  @NotBlank(message = "编码不能为空", groups = {AddGroup.class, EditGroup.class})
  private String spu;

  /**
   * 是否商城商品
   */
  private String isShop;

  /**
   * 是否销售模块可用
   */
  private String isCrm;

  /**
   * 是否启用
   */
  @NotBlank(message = "是否启用不能为空", groups = {AddGroup.class, EditGroup.class})
  private String status;

  /**
   * 产品分类
   */
  private Long treeId;

  /**
   * 商城分类
   */
  private Long mallTreeId;

  /**
   * 备注
   */
  private String remark;


}
